﻿using System;

namespace PageAdmin.Utils
{
    /// <summary>
    /// 通用会员用户基础描述类
    /// </summary>
    [Serializable]
    public class CurrentUser
    {
       
        /// <summary>
        /// 用户id
        /// </summary>
        public int Uid { get; set; } = 0;

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; } = "";

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; } = "";


        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; } = "";
        

        /// <summary>
        /// 用户会员组Id
        /// </summary>
        public int MemberGroupId { get; set; } = 0;

        /// <summary>
        /// 用户部门id
        /// </summary>
        public int DepartmentId { get; set; } = 0;


        /// <summary>
        /// 是否超级管理员
        /// </summary>
        public bool IsSuperAdmin { get; set; } = false;

        /// <summary>
        /// 是否是管理员
        /// </summary>
        public bool IsAdministrator{ get; set; } = false;

        /// <summary>
        /// 用户角色id集合
        /// </summary>
        public string RoleIds { get; set; }
        /// <summary>
        /// 用户邮箱
        /// </summary>
        public string Email{ get; set; }

        /// <summary>
        /// 用户手机
        /// </summary>
        public string Mobile { get; set; }


        /// <summary>
        /// 用户登录时候产生的令牌
        /// </summary>
        public string UserToken { get; set; }
    }
}
